package com.kedacom.freedomLabel.base;

import android.widget.Toast;

import com.kedacom.lego.fast.util.ToastUtil;
import com.kedacom.lego.fast.view.LegoFastViewModel;
import com.kedacom.lego.util.Utils;
import com.lzscale.scalelib.misclib.Misc;


public class BaseViewModel extends LegoFastViewModel {
    private Misc mMisc = Misc.newInstance();

    @Override
    public void showToast(String message) {
        ToastUtil.showFilteredDefaultToast(message);
    }

    @Override
    public void showToast(String message, int toastType) {
        ToastUtil.showFilteredToast(Utils.getApp(), message, toastType, Toast.LENGTH_SHORT, 2);
    }

    protected void beep() {
        mMisc.beep();
    }
}